package org.adoxx; import org.adoxx.all.abstracted.factory.ADOLibFactory; public class Main { public static void main(String[] args) { try { /* Generate an empty library * System.out.println(ADOLibFactory.generateADOxxEmptyLibrary("AB").generateALL()); */ /* Extend the empty library with two class and a relation between them **/ System.out.println(ADOLibFactory.generateADOxxTutorialLibrary("AB", "A", "B").generateALL()); /* Create an empty extended library * System.out.println(ADOLibFactory.generateADOxxExtendedTestLibrary("AB").generateALL()); */ /* Generate the ABL file of the Tutorial Library; * it will use the online service in order to generate the ABL * ADOLibFactory.generateADOxxTutorialLibrary("AB", "A", "B").generateABLFile("D:\\ADOXX.ORG\\JAVA-MM-DSL\\test\\zzzz.abl"); */ /* Generate a tutorial library with A and B classes and then extend it importing all the class and relations generated in another tutorial library (C D) * System.out.println(ADOLibFactory.generateADOxxTutorialLibrary("AB", "A", "B").importClassesAndRealtions(ADOLibFactory.generateADOxxTutorialLibrary("CD", "C", "D"), true).generateALL()); */ /* Parse an ALL file and generate the corresponding java ADOAllFile structure. Then generate the ALL from the java class in a new file * ADOLibFactory.loadFromAllFile("D:\\ADOXX.ORG\\JAVA-MM-DSL\\test\\StartingPoint_BPMN2-0_ADOxx1-3-UL1_v1-01.all", true) .generateALLFile("D:\\ADOXX.ORG\\JAVA-MM-DSL\\test\\StartingPoint_BPMN2-0_ADOxx1-3-UL1_v1-01_MY.all"); */ /* Parse an ALL file and generate Java code in order to define the ADOAllFile structure * System.out.println(ADOLibFactory.generateJavaCodeFromAllFile("D:\\ADOXX.ORG\\JAVA-MM-DSL\\test\\test01.all", true)); ADOLibFactory.generateJavaCodeFileFromAllFile("D:\\ADOXX.ORG\\JAVA-MM-DSL\\test\\test01.java", "D:\\ADOXX.ORG\\JAVA-MM-DSL\\test\\test01.all", true); */ /* Export the generated tutorial library in a Database and lunch ADOxx in order to test if the library work. * it will use the online service in order to generate the ABL needed by the DB * ADOLibFactory.generateADOxxTutorialLibrary("AB", "C", "D").generateDB("adoMY2", "put_your_adoxx_license_here"); */ } catch (Exception e) { e.printStackTrace(); } } }